package  
{
	import org.flixel.*;
	
	public class Clump extends FlxText
	{
		//private var size:uint;
		
		public function Clump(_x:Number, _y:Number, _speed:Number) 
		{
			var letter:String;
			if (FlxU.random() * 10 <= 5) {
				letter = "1";
			}else {
				letter = "0";
			}
			super(_x, _y, 16, letter, false);
			super.setFormat(null, 8, 0xFF40DB24);
			var moveSpeed:Number = 0.1 + FlxU.random() * _speed;
			scale.x = moveSpeed;
			scale.y = moveSpeed;
			alpha = moveSpeed * 0.2;
			velocity.x = -moveSpeed * 100;
		}
		
		override public function update():void {
			if (x < -width) {
				x = FlxG.width;
			}
			
			super.update();
		}
	}
}